package com.kuqi.entitiy;

import androidx.annotation.NonNull;

public class UserInfo {

    // 主键
    private int id;
    // 用户名
    private String userName;
    // 性别
    private String userSex;
    // 账号
    private String applyKey;
    // 密码
    private String secretKey;
    // 未成年限制
    private int userAgeLimit;
    // 注册日期
    private String recordDate;
    // 可用时长
    private int effective;
    // 用户头像base64字符串
    private String fileBase64;
    // 手机号码
    private String phone;
    // 工薪
    private double salary;
    // 经验
    private int experience;



    public UserInfo(){}

    public UserInfo(String applyKey, String secretKey){
        this.applyKey = applyKey;
        this.secretKey = secretKey;
    }

    public UserInfo(int id, String userName, String userSex, String applyKey, String secretKey, int userAgeLimit,
                    String recordDate, int effective, String fileBase64, String phone, double salary, int experience) {
        this.id = id;
        this.userName = userName;
        this.userSex = userSex;
        this.applyKey = applyKey;
        this.secretKey = secretKey;
        this.userAgeLimit = userAgeLimit;
        this.recordDate = recordDate;
        this.effective = effective;
        this.fileBase64 = fileBase64;
        this.phone = phone;
        this.salary = salary;
        this.experience = experience;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public int getUserAgeLimit() {
        return userAgeLimit;
    }

    public void setUserAgeLimit(int userAgeLimit) {
        this.userAgeLimit = userAgeLimit;
    }

    public String getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(String recordDate) {
        this.recordDate = recordDate;
    }

    public int getEffective() {
        return effective;
    }

    public void setEffective(int effective) {
        this.effective = effective;
    }

    public String getApplyKey() {
        return applyKey;
    }

    public void setApplyKey(String applyKey) {
        this.applyKey = applyKey;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getExperience() {
        return experience;
    }

    public void setExperience(int experience) {
        this.experience = experience;
    }

    public String getFileBase64() {
        return fileBase64;
    }

    public void setFileBase64(String fileBase64) {
        this.fileBase64 = fileBase64;
    }

    @NonNull
    @Override
    public String toString() {
        return String.format("user_name=%s, use_sex=%s, secretKey=%s, phone=%s, salary=%s, experience=%s", userName, userSex,secretKey,phone, salary, experience);
    }
}
